package cn.wolfcode.ssm.service;

import cn.wolfcode.ssm.domain.Employee;
import cn.wolfcode.ssm.page.PageResult;
import cn.wolfcode.ssm.query.QueryObject;
import org.apache.ibatis.annotations.Param;


public interface IEmployeeService {

    void save(Employee employee, Long[] ids);

    void update(Employee employee, Long[] ids);

    void delete(Long id);

    Employee get(Long id);

    PageResult<Employee> query(QueryObject qo);

    Employee login(String username, String password);


    // 判断用户的老密码是否正确
    String contrastPassword(Long id);

    // 用户把老密码改成新密码
    void updatePassword(Long id,String newPassword);

    // 管理员重置密码
    void resetPwd(String newPassword, Long userId);

}
